*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  font-size: 14px;
  color: #555;
  font-family: -apple-system, BlinkMacSystemFont, Helvetica Neue, PingFang SC,
    Microsoft YaHei, Source Han Sans SC, Noto Sans CJK SC, WenQuanYi Micro Hei,
    sans-serif;
}

header {
  display: block;
}

#map {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 10;
  background-color: #fff;
}

.condition-form {
  width: 900px;
  margin: 0 auto;
  padding: 10px 0;
}

.condition-form::after {
  content: "";
  display: table;
  overflow: hidden;
  height: 0;
  clear: both;
}

.form-group {
  float: left;
  margin-right: 20px;
}

.form-label {
  float: left;
  line-height: 30px;
}

.form-content {
  float: left;
  height: 30px;
}

.select {
  position: relative;
  display: inline-block;
  width: 220px;
  height: 30px;
}

.select-viewer {
  position: relative;
  display: block;
  width: 100%;
  height: 30px;
  padding: 0 16px 0 8px;
  line-height: 30px;
  border-radius: 4px;
  border: 1px solid #ddd;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
}

.select-viewer::after {
  content: "";
  position: absolute;
  top: 13px;
  right: 4px;
  width: 0;
  height: 0;
  border: 4px solid transparent;
  border-top-color: #aaa;
  border-bottom-width: 0;
}

.select-viewer.placeholder {
  color: #999;
}

.select-viewer:focus,
.select-viewer.active {
  outline: none;
  border-color: #2fa4e7;
}

.select-viewer.active + .dropdown {
  display: block;
}

.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  list-style: none;
  margin: 1px 0 0;
  padding: 0;
  background-color: #fff;
  box-shadow: 2px 0 4px rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  max-height: 120px;
  overflow: auto;
}

.dropdown > li {
  cursor: pointer;
  padding: 8px 8px;
  white-space: nowrap;
}

.dropdown > li:hover {
  background-color: #f0f0f0;
}

.condition {
  width: 340px;
  height: 30px;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 0 0.5em;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
}

.search-btn {
  float: left;
  background-color: #2fa4e7;
  color: #fff;
  height: 30px;
  padding: 0 1em;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.search-btn:focus {
  outline: none;
}

.station:focus,
.condition:focus {
  outline: none;
  border-color: #2fa4e7;
}

.aside {
  position: fixed;
  top: 50px;
  right: -480px;
  bottom: 0;
  z-index: 10;
  width: 240px;
  padding-top: 10px;
  padding-bottom: 70px;
  background-color: rgba(0, 0, 0, 0.5);
  transition: right 0.3s;
}

.aside.visible {
  right: 0;
}

.aside.visible + .legend {
  right: 255px;
}

.collapses {
  margin: 0;
  padding: 0 10px;
  list-style: none;
  height: 100%;
  overflow: auto;
}

.collapse + .collapse {
  margin-top: 15px;
}

.collapse-header {
  position: relative;
  height: 40px;
  padding: 0 20px 0 10px;
  line-height: 40px;
  background-color: #2fa4e7;
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
}

.collapse-header::after {
  content: "";
  position: absolute;
  top: 18px;
  right: 8px;
  width: 0;
  height: 0;
  border: 4px solid transparent;
  border-top-color: #fff;
  border-bottom-width: 0;
}

.is-station::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  background: url("./radar2.png") no-repeat center / contain;
  vertical-align: middle;
}

.collapsed .collapse-content {
  display: none;
}

.collapse-content {
  margin-top: 10px;
  font-size: 12px;
}

.card {
  height: 40px;
  padding: 0 15px;
  line-height: 40px;
  white-space: nowrap;
  background-color: #fff;
  border-radius: 4px;
  color: #2fa4e7;
  cursor: pointer;
}

.card-detail + .card {
  margin-top: 10px;
}

.card.opened {
  border-radius: 4px 4px 0 0;
}

.card.opened + .card-detail {
  display: block;
}

.card-detail {
  display: none;
  padding: 15px;
  background-color: #fff;
  border-radius: 0 0 4px 4px;
  border-top: 1px solid #eee;
}

.card-detail p {
  margin: 0;
}

.card-detail p + p {
  margin-top: 5px;
}

.card-value {
  color: #2fa4e7;
}

.count {
  margin-left: 0.5em;
  color: #dfbb23;
}

.zip {
  display: none;
  position: fixed;
  right: 0;
  bottom: 10px;
  height: 50px;
  z-index: 11;
  width: 24px;
  border-radius: 4px 0 0 4px;
  background: #fff
    url("")
    no-repeat center / 20px 20px;
  box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.zip.visible {
  display: block;
}

.legend {
  position: fixed;
  right: -240px;
  bottom: 15px;
  z-index: 10;
  background-color: #fff;
  border-radius: 4px;
  padding: 20px;
  width: 240px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
  transition: right 0.3s;
}

.legend h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
}

.legend-item {
  margin-top: 10px;
  font-size: 12px;
}

.legend-label {
  color: #2fa4e7;
}

.legend-content {
  overflow: hidden;
}

.status {
  float: left;
  color: #333;
  line-height: 20px;
}

.status + .status {
  margin-left: 3em;
}

.status::after {
  margin-left: 6px;
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.status.done::after {
  background-color: #20af4b;
}
.status.pending::after {
  background-color: #333;
}
.status.block::after {
  background-color: #ed1b23;
}
.status.empty::after {
  background-color: #01a2e8;
}

.freq-status {
  position: relative;
  float: left;
  line-height: 20px;
  width: 68px;
}

.freq-status::after {
  position: absolute;
  top: 3px;
  left: 74px;
  content: "";
  width: 12px;
  height: 12px;
  border: 2px solid;
  border-radius: 50%;
}

.freq-status:nth-child(2) {
  margin-left: 3.5em;
}
.freq-status:nth-child(4) {
  margin-left: 3.5em;
}

.freq-status:nth-child(1)::after {
  border-color: #ff8ec9;
}
.freq-status:nth-child(2)::after {
  border-color: #ffc04a;
}
.freq-status:nth-child(3)::after {
  border-color: #00a4e9;
}
.freq-status:nth-child(4)::after {
  border-color: #ce4dff;
}
.freq-status:nth-child(5)::after {
  border-color: #c3eb36;
}

.dot-5g:hover {
  background-image: linear-gradient(
    to left top,
    rgba(255, 255, 255, 0.5),
    rgba(255, 255, 255, 0)
  ) !important;
}

.g-dot-title {
  font-size: 14px;
  color: #333;
  line-height: 20px;
}

.g-dot-color {
  margin-right: 5px;
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-image: linear-gradient(
    to right bottom,
    rgba(255, 255, 255, 0.5),
    rgba(255, 255, 255, 0)
  );
  vertical-align: middle;
}

.g-dot-detail {
  font-size: 12px;
  color: #555;
  height: 80px;
  overflow: auto;
}

.g-dot-detail p {
  margin: 5px 0 0;
}

.g-dot-value {
  color: #2fa4e7;
}
